package com.dynamic.service;

import com.dynamic.entity.User;
import com.dynamic.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author ytj
 * @date 2024/5/17
 */
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public void selectById(){
        User user = userMapper.selectById(1L);
        System.out.println("获取用户对象:"+user.getName());
    }
}
